package com.heima.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.heima.model.article.pojos.ApArticle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ApArticleMapper extends BaseMapper<ApArticle> {
    List<ApArticle> selectPageLimit(Page<ApArticle> page,@Param("apArticle") ApArticle apArticle);

    List<ApArticle> selectLoadMorePageLimit(Page<ApArticle> page,@Param("apArticle") ApArticle apArticle);

    List<ApArticle> selectLoadNewPageLimit(Page<ApArticle> page,@Param("apArticle") ApArticle apArticle);
}
